Method for Responding to Touch Operation, Mobile Terminal, and Storage Medium

ABSTRACT

A method for responding to a touch operation is provided, relating to the field of human-computer interaction. The method includes the following. The touch operation on a touch screen is received. Determine an operation area where the touch operation occurs, where the touch screen includes a first operation area and a second operation area, and the operation area is at least one of the first operation area and the second operation area. Determine an operation type of the touch operation. Determine whether to respond to the touch operation according to the operation area and the operation type.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation of International Application No.PCT/CN2017/101285, filed on Sep. 11, 2017, the entire disclosure ofwhich is hereby incorporated by reference.

TECHNICAL FIELD

This disclosure relates to the field of human-computer interaction, andin particular, to a method for responding to a touch operation, mobileterminal, and storage medium.

BACKGROUND

In order to improve the utilization proportion of the touch screen of amobile terminal, the rims of the front panel of the mobile terminalbecome narrower and narrower, thereby increasing the screen ratio of themobile terminal. One way the screen ratio can be expressed is the ratioof the area of the touch screen to the area of the front panel of themobile terminal.

For a mobile terminal with narrow rims, when a user holds the mobileterminal, the holding position may be a touch part of the touch screen,thereby causing the user to touch the edge area of the touch screen bymistake, and the mobile terminal generating a problem of misjudgment.The edge area of the touch screen refers to an area located on the upperedge, an area on the left edge, an area on the lower edge, and an areaon the right edge of the touch screen.

At present, the mobile terminal is unable to determine whether theoperation on the edge area of the touch screen is by mistake. If themobile terminal directly responds to this operation, it may cause themobile terminal to perform tasks that the user does not expect toperform, and waste the resources of the mobile terminal.

SUMMARY

According to a first aspect, a method for responding to a touchoperation is provided. The method is applicable to a mobile terminal.The mobile terminal includes a touch screen. The method includes thefollowing.

The touch operation on a touch screen is received. Determine anoperation area where the touch operation occurs, where the touch screenincludes a first operation area and a second operation area, and theoperation area is at least one of the first operation area and thesecond operation area. Determine an operation type of the touchoperation. Determine whether to respond to the touch operation accordingto the operation area and the operation type.

According to a second aspect, a mobile terminal is provided. The mobileterminal includes at least one processor and a computer readablestorage. The computer readable storage is coupled to the at least oneprocessor and stores at least one computer executable instructionthereon which, when executed by the at least one processor, causes theat least one processor to execute the method of the first aspect.

According to a third aspect, a non-transitory computer readable storagemedium is provided. The non-transitory computer readable storage mediumis configured to store a computer program which, when executed by aprocessor, causes the processor to execute the method of the firstaspect.

BRIEF DESCRIPTION OF DRAWINGS

For a better understanding of the aforementioned implementations of theinvention as well as additional implementations thereof, referenceshould be made to the Detailed Description of the implementations below,in conjunction with the following drawings in which like referencenumerals refer to corresponding parts throughout the figures.

FIG. 1A to FIG. 2 are schematic structural diagrams of a mobile terminalaccording to one example implementation.

FIG. 3A to FIG. 3F are schematic diagrams illustrating a mobile terminalaccording to one example implementation.

FIG. 4 is a schematic diagram illustrating a touch position anddisplacement according to one example implementation.

FIG. 5 is a schematic diagram illustrating a touch position anddisplacement according to one example implementation.

FIG. 6 is a schematic diagram illustrating a touch position anddisplacement according to one example implementation.

FIG. 7 is a schematic flowchart of a method for responding to a touchoperation according to one example implementation.

FIG. 8 is a schematic diagram illustrating a first operation area and asecond operation area according to one example implementation.

FIG. 9 is a schematic diagram illustrating response rules according toone example implementation.

FIG. 10 is a schematic diagram illustrating a first operation area and asecond operation area according to one example implementation.

FIG. 11 is a schematic diagram illustrating a display mode according toone example implementation.

FIG. 12 is a schematic diagram illustrating a display mode according toone example implementation.

FIG. 13 is a schematic diagram illustrating a display mode according toone example implementation.

FIG. 14 is a schematic diagram illustrating a display mode according toone example implementation.

FIG. 15 is a schematic flowchart of a method for responding to a touchoperation according to one example implementation.

FIG. 16 is a schematic diagram illustrating a second operation areaaccording to one example implementation.

FIG. 17 is a schematic diagram illustrating a second operation areaaccording to one example implementation.

FIG. 18 is a schematic diagram illustrating a second operation areaaccording to one example implementation.

FIG. 19 is a schematic diagram illustrating a second operation areaaccording to one example implementation.

FIG. 20 is a schematic diagram illustrating a second operation areaaccording to one example implementation.

FIG. 21 is a schematic flowchart of a method for responding to a touchoperation according to one example implementation.

FIG. 22 is a schematic flowchart of a method for responding to a touchoperation according to one example implementation.

FIG. 23 is a schematic flowchart of a method for responding to a touchoperation according to one example implementation.

FIG. 24 is a schematic diagram illustrating response rules according toone example implementation.

FIG. 25 is a schematic flowchart of a method for responding to a touchoperation according to one example implementation.

FIG. 26 is a schematic block diagram of a device for responding to atouch operation according to one example implementation.

DETAILED DESCRIPTION

To make objectives, technical solutions, and advantages of the presentapplication more clear, implementations of the application will bedescribed in further detail below with reference to the accompanyingdrawings.

First, application scenario is described.

Referring to FIG. 1A, it shows a structural block diagram of a mobileterminal 100 according to an example implementation. The mobile terminal100 may be a mobile phone, a tablet computer, a notebook computer, ane-book, or the like. The mobile terminal 100 in the present disclosuremay include one or more of the following components: at least oneprocessor 110 (such as a processor 110), a non-transitory computerreadable storage 120 (such as a memory 120), and a touch screen 130.

The processor 110 may include one or more processing cores. Theprocessor 110 connects various parts of the entire mobile terminal 100by using various interfaces and lines, and executes or performs theinstructions, programs, code sets, or instruction sets stored in thememory 120, and deploys the data stored in the memory 120, to executevarious functions and processing data of mobile terminal 100. In anexample, the processor 110 may use at least one hardware form of digitalsignal processing (DSP), field-programmable gate array (FPGA), andprogrammable logic array (PLA) to implement. The processor 110 mayintegrate one or a combination of a central processing unit (CPU), agraphics processing unit (GPU), and a modem. The CPU is mainlyconfigured to handle the operating system, user interface, andapplication programs; the GPU is responsible for rendering and drawingthe content to be displayed by the touch screen 130; and the modem isused for processing wireless communication. It can be understood thatthe modem may not be integrated into the processor 110, and may beimplemented by a single chip.

The memory 120 may include random access memory (RAM), and may alsoinclude read-only memory (ROM). In an example, the memory 120 includes anon-transitory computer-readable storage medium. The memory 120 may beused to store instructions, programs, codes, code sets, or instructionsets. The memory 120 may include a storage program area and a storagedata area, where the storage program area may store instructions forimplementing an operating system, instructions for at least one function(such as a touch function, a sound playback function, an image playbackfunction, etc.), and instructions for implementing the following methodimplementations; the storage data area may store data (such as audiodata, phone book) created according to the use of mobile terminal 100.

Taking the operating system of an Android system as an example, theprograms and data stored in the memory 120 are illustrated in FIG. 1B.The memory 120 stores a Linux kernel layer 220, a system runtime layer240, an application framework layer 260, and an application layer 280.The Linus kernel layer 220 provides low-level drivers for varioushardware of the mobile terminal 100, such as display drivers, audiodrivers, camera drivers, Bluetooth drivers, Wi-Fi drivers, powermanagement, and so on. The system runtime layer 240 provides majorfeature support for the Android system through some C/C++ libraries. Forexample, the SQLite library provides support for database, the OpenGL/ESlibrary provides support for 3D drawing, and the Webkit library providessupport for browser kernel. The Android runtime library is also providedin the system runtime layer 240, which mainly provides some corelibraries for allowing developers to write Android applications usingthe Java language. The application framework layer 260 provides variousAPIs that may be used when building application programs. Developers canalso use these APIs to build their own applications, such as activitymanagement, window management, view management, notification management,content providers, package management, call management, resourcemanagement, and location management. There is at least one applicationrunning in the application layer 280. These applications can be contactprograms, SMS programs, clock programs, camera applications, etc. thatare native to the operating system; they can also be applicationsdeveloped by third-party developers, such as instant communicationprograms, photo beautification programs, etc.

Taking the operating system of an IOS system as an example, the programsand data stored in the memory 120 are illustrated in FIG. 2. The IOSsystem includes: a core operating system layer 320, a core service layer340, a media layer 360, and a touchable layer (also called Cocoa touchlayer) 380. The core operating system layer 320 includes an operatingsystem kernel, drivers, and low-level program frameworks. Theselow-level program frameworks provide functions closer to the hardwarefor use by the program framework located at the core service layer 340.The core service layer 340 provides system services and/or programframeworks required by the application program, such as a foundationframework, an account framework, an advertising framework, a datastorage framework, a network connection framework, a geographic locationframework, a motion framework, and so on. The media layer 360 providesaudio-visual-related interfaces for applications, such as interfacesrelated to graphics and images, interfaces related to audio technology,interfaces related to video technology, and AirPlay interfaces for audioand video transmission technologies. The touchable layer 380 providesvarious commonly-used interface-related frameworks for applicationdevelopment. The touchable layer 380 is responsible for user touchinteractive operations on the mobile terminal 100. For example, a localnotification service, a remote push service, an advertising framework, agame tool framework, a message user interface (UI) framework, a userinterface UIKit framework, a map framework, and so on.

Among the frameworks illustrated in FIG. 2, frameworks related to mostapplications include, but are not limited to: a basic framework in thecore service layer 340 and a UIKit framework in the touchable layer 380.The basic framework provides many basic object classes and data types,and provides the most basic system services for all applications,regardless of the UI. The classes provided by the UIKit framework arebasic UI class libraries for creating touch-based user interfaces. IOSapplications can provide UI based on the UIKit framework, so it providesthe application's infrastructure for building user interfaces, drawing,handling and user interaction events, responding to gestures, and more.

The touch screen 130 is used for receiving a touch operation by a userusing a finger, a touch pen, or any suitable object on or nearby, and auser interface displaying various applications. The touch screen 130 isusually disposed on the front panel of the mobile terminal 100. Thetouch screen 130 may be designed as a full screen, a curved screen, or aspecial-shaped screen. The touch screen 130 can also be designed as acombination of a full screen and a curved screen, and a combination of aspecial-shaped screen and a curved screen, which is not limited in thisexample.

Full Screen

The full screen may refer to a screen design in which the touch screen130 occupies the front panel of the mobile terminal 100 with a screenratio exceeding a threshold (such as 80% or 90% or 95%). One calculationmethod of the screen ratio is: the area of the touch screen 130/the areaof the front panel of the mobile terminal 100*100%; another way tocalculate the screen ratio is: the diagonal of touch screen 130/thediagonal of the front panel of the terminal 100*100%. In the schematicexample illustrated in FIG. 3A, almost all areas on the front panel ofthe mobile terminal 100 are touch screen 130. On the front panel 40 ofthe mobile terminal 100, all areas other than the edges generated by themiddle frame 41 are all touch screen 130. The four corners of the touchscreen 130 may be right-angled or rounded.

The full screen may also be a screen design in which at least one frontpanel component is integrated inside or below the touch screen 130. Inan example, the at least one front panel component includes a camera, afingerprint sensor, a proximity light sensor, a distance sensor, and thelike. In some examples, other components on the front panel of therelated mobile terminal are integrated in all or part of the touchscreen 130. For example, after the photosensitive element in the camerais split into multiple photosensitive pixels, the pixels are integratedin a black area in each display pixel in the touch screen 130. Since theat least one front panel component is integrated inside the touch screen130, the full screen has a higher screen ratio.

In other examples, the front panel components on the front panel of therelated mobile terminal can also be set on the side or back of themobile terminal 100, such as placing an ultrasonic fingerprint sensorunder the touch screen 130, or a bone-conducting earpiece inside themobile terminal 100, and the camera arranged on the side of the mobileterminal in a pluggable structure.

In some examples, when the mobile terminal 100 uses a full screen, asingle side, or two sides (such as left and right sides), or four sides(such as top, bottom, left, and right sides) of the middle frame of themobile terminal 100 are provided with edge touch sensors 120. The edgetouch sensors 120 are used to detect at least one of a user's touchoperation, click operation, press operation, and slide operation on themiddle frame. The edge touch sensor 120 may be any one of a touchsensor, a thermal sensor, and a pressure sensor. The user can applyoperations on the edge touch sensor 120 to control applications in themobile terminal 100.

Curved Screen

The curved screen refers to a screen design in which the screen area ofthe touch screen 130 is not in a plane. Generally, a curved screen hasat least one cross section: the cross section has a curved shape, andthe projection of the curved screen in any plane direction perpendicularto the cross section is a flat screen design. The curved shape may beU-shaped. In an example, the curved screen refers to a screen designmanner in which at least one side is a curved shape. In an example, thecurved screen refers to that at least one side of the touch screen 130extends to cover the middle frame of the mobile terminal 100. Since theside of the touch screen 130 extends to cover the middle frame of themobile terminal 100, the middle frame without the display function andthe touch function is also covered as a displayable area and/or anoperable area, so that the curved screen has a higher screen ratio. Inan example, in the example illustrated in FIG. 3B, the curved screenrefers to a screen design in which the left and right sides 42 arecurved; or, the curved screen refers to a screen design in which theupper and lower sides are curved; or, curved screen refers to a screendesign with four curved sides on the top, bottom, left, and right. Inanother example, the curved screen is made of a touch screen materialwith a certain flexibility.

Special-Shaped Screen

The special-shaped screen is a touch screen with an irregular shape. Theirregular shape is not a rectangle or a rounded rectangle. In anexample, the special-shaped screen refers to a screen design providedwith protrusions, notches, and/or holes on the rectangular or roundedrectangular touch screen 130. In an example, the protrusion, the notch,and/or the hole can be located at the edge of the touch screen 130, thecenter of the screen, or both. When the protrusion, notch, and/or holeare set on one edge, they can be set at the middle position or both endsof the edge; when the protrusion, notch, and/or hole are set on thecenter of the screen, they can be set in one or more of the areas: theupper area, the upper left area, the left area, the lower left area, thelower area, the lower right area, the right area, and the upper rightarea of the screen. When arranged in multiple areas, the protrusions,the notches, and the holes can be distributed in a centralized ordistributed manner; they can be distributed symmetrically orasymmetrically. The number of the protrusions, the notches, and/or theholes is not limited.

Because the special-shaped screen covers the upper and/or lower foreheadarea of the touch screen as a displayable area and/or an operable area,so that the touch-screen display takes up more space on the front panelof the mobile terminal, having a larger screen ratio. In some examples,the notches and/or holes are used to receive at least one front panelcomponent, which includes at least one of a camera, a fingerprintsensor, a proximity light sensor, a distance sensor, handset, an ambientlight sensor, or physical buttons.

Schematically, the notch may be provided on one or more edges, and thenotch may be a semi-circular notch, a right-angled rectangular notch, arounded rectangular notch, or an irregularly-shaped notch. In theexample illustrated schematically in FIG. 3C, the special-shaped screenmay be a screen design provided with a semi-circular notch 43 at thecenter of the upper edge of the touch screen 130. The space vacated bythe semi-circular notch 43 is used for accommodating at least one frontpanel component of a camera, a distance sensor (also known as aproximity sensor), a handset, and an ambient light brightness sensor. Asillustrated in FIG. 3D, the special-shaped screen may be designed that asemi-circular notch 44 is located on the central position of the loweredge of the touch screen 130. The space vacated by the semi-circularnotch 44 is used to accommodate at least one component of a physicalbutton, a fingerprint sensor, and a microphone. As illustrated in theexample of FIG. 3E, the special-shaped screen may be a screen designprovided with a semi-elliptical notch 45 in the center of the lower edgeof the touch screen 130. A semi-elliptical notch is formed on the frontpanel of the mobile terminal 100, and two semi-elliptical notchessurround to form an elliptical area. The elliptical area is used toaccommodate physical keys or fingerprint identification modules. In theexample illustrated in FIG. 3F, the shaped screen can be a screen designhaving at least one small hole 45 in the upper half of the touch screen130, and the space vacated by the small hole 45 is used to accommodateat least one front panel component of a camera, a distance sensor, ahandset, and an ambient light sensor.

In addition, those skilled in the art can understand that the structureof the mobile terminal 100 illustrated in the above figures does notconstitute a limitation on the mobile terminal 100. The mobile terminalmay include more or fewer components than illustrated in the drawings,or combine certain components, or different component arrangements. Forexample, the mobile terminal 100 further includes components such as aradio frequency circuit, an input unit, a sensor, an audio circuit, aWIFI module, a power supply, and a Bluetooth module, and details are notdescribed herein again.

Some terms of the present disclosure are described.

Touch operation of a click type: refers to a touch operation where thetouch position on the touch screen is fixed within a first touchduration. The first touch duration is usually shorter, for example: 500ms.

In an example, the touch operation of the click type is a clickoperation, a double-click operation, or the like.

Referring to FIG. 4, the relationship between the time and displacementof the touch operation of the click type is illustrated. It can be knownfrom FIG. 4 that within 500 ms, the touch position of the touchoperation does not change, and the displacement is 0 (indicated by abold line in FIG. 1).

In this example, the touch operation of the click type have a shortdisplacement within a first sub-duration of the first touch duration,and a fixed displacement within a second sub-duration, and a ratio ofthe first sub-duration to the first touch duration is smaller than afirst ratio, i.e., the touch operation of the click type is a touchoperation based on click.

The first ratio is a value greater than 0 and less than 1, such as 0.5,0.3, or 0.1. This example does not limit the value of the first ratio.

Touch operation of a slide type: refers to a touch operation where thetouch position on the touch screen is not fixed within a second touchduration. The second touch duration is greater than the first touchduration, for example: 1 second.

Referring to FIG. 5, the relationship between the time and the touchposition of the touch operation of the slide type is illustrated. It canbe known from FIG. 5 that, within 1 second, the touch position of thetouch operation is not fixed and the displacement changes.

In this example, the touch operation of the slide type may have a changein displacement in a third sub-duration of the second touch duration,and the displacement in a fourth sub-duration is fixed. A ratio of thefourth sub-duration to the second touch duration is smaller than asecond ratio, i.e., the touch operation of the slide type is aslide-based touch operation.

The second ratio is a value greater than 0 and less than 1, such as 0.5,0.3, or 0.1. The second ratio may be equal to or different from thefirst ratio. This example does not limit the value of the second ratio.

Touch operation of a long-press type: refers to a touch operation wherethe touch position on the touch screen is fixed during a third touchduration. The third touch duration is greater than first touch duration,for example: 2s.

Referring to FIG. 6, the relationship between the time and touchposition of the touch operation of the long-press type is illustrated.It can be known from FIG. 6 that within 2 seconds, the touch position ofthe touch operation is fixed and the displacement is 0.

In this example, the touch operation of the long-press type may have achange in displacement within a fifth sub-duration of the third touchduration, and a displacement within a sixth sub-duration is fixed. Aratio of the fifth sub-duration to the third touch duration is smallerthan a third ratio, i.e., the touch operation of the long-press type isa touch operation based on long-press.

The third ratio is a value greater than 0 and less than 1, such as 0.5,0.3, or 0.1. The third ratio may be the same as the first ratio or maybe different from the first ratio. This example does not limit the valueof the third ratio.

Operation area: an area in the touch screen that supports responding tothe received touch operation. In an example, all areas on the touchscreen of the mobile terminal are operation areas.

When the rims of the touch screen are narrow, during use, the palmand/or fingers of the user may accidentally touch the edge area of thetouch screen, resulting in operations by mistake. Based on thistechnical problem, the present disclosure provides the followingtechnical solutions to identify operations by mistake by users (i.e.,accidental operations of users) and save resources of the mobileterminal.

The present disclosure uses the mobile terminal as an example fordescription. The touch screen of the mobile terminal is any one of theabove-mentioned full screen, curved screen, and special-shaped screen,or it may be other types of touch screen. In an example, the width ofthe rims of the touch screen of the mobile terminal is smaller than apreset threshold, for example, the width of the rims of the curvedscreen is 0.

Referring to FIG. 7, a flowchart of a method for responding to a touchoperation in accordance with an example implementation is provided. Themethod begins at 701.

At 701: receiving a first touch operation and a second touch operationwhich act on a touch screen for a preset time period.

In an example, a touch sensor is provided in the touch screen of themobile terminal, and the touch sensor detects whether there is a touchoperation in real time or periodically. When the touch sensor detects atouch operation, a touch event corresponding to the touch operation issent to the processor. The processor recognizes the operation typeand/or the touch position of the touch operation according to the touchevent.

The operation type of the touch operation may be at least one of a clicktype, a slide type, and a long-press type.

The preset time period is usually short, for example: 100 ms, i.e., itcan be considered that the mobile terminal receives both the first touchoperation and the second touch operation at the same time.

In this example, the first touch operation and the second touchoperation are used to indicate different touch operations, and do notrepresent the number and/or the receiving order of the touch operations.For example, the mobile terminal receives three counts of touchoperations on the touch screen. The first count of touch operation isthe first touch operation, and the second count of touch operation orthe third count of touch operation is the second touch operation.

At 702: determining an operation area where the first touch operationoccurs.

The touch screen includes a first operation area and a second operationarea. The operation area where the first touch operation occurs is oneof the first operation area and the second operation area.

In the present disclosure, the mobile terminal determines the operationarea on which the touch operation acts (including the first touchoperation and the second touch operation), including: detecting whetherthe touch position of the touch operation belongs to a position rangecorresponding to the first operation area; if the touch position of thetouch operation belongs to the position range corresponding to the firstoperation area, then determine that the operation area on which thetouch operation acts is the first operation area; if the touch positionof the touch operation does not belong to the position rangecorresponding to the first operation area, then determine that theoperation area on which the touch operation acts is the second operationarea.

The mobile terminal also determines whether the touch position of thetouch operation belongs to a position range corresponding to the secondoperation area. If the touch position of the touch operation belongs tothe position range corresponding to the second operation area, thendetermine that the operation area on which the touch operation acts isthe second operation area; if the touch position of the touch operationdoes not belong to the position range corresponding to the secondoperation area, then determine that the operation area on which thetouch operation acts is the first operation area.

The position range of the first operation area is a coordinate setcomposed of at least one coordinate. Schematically, the position rangeof the first operation area is {(100, 100), (1500, 1500)}, indicatingthat a range from position (100, 100) to position (1500, 1500) belongsto the first operation area.

The position range of the second operation area is determined accordingto the position range of the first operation area, i.e., the positionrange of the second operation area is an operation area other than thefirst operation area.

The coordinate of each position is determined according to the positionsof pixel points. For example: position (100, 100) represents the pixelpoint of the 100th row and the 100th column.

Referring to FIG. 8, the touch screen is divided into a first operationarea 81 and a second operation area 82. The position range of the firstoperation area 81 is {(110, 110), (1500, 1500)}, and the position rangeof the second operation area is the operation area other than firstoperation area 81 in the touch screen. If there are two touch operationson the touch screen. The touch position of the first touch operation is(900, 900), which belongs to the position range of the first operationarea 81, and the touch position of the second touch operation is (20,20), which does not belong to the position range of the first operationarea 81, then it is determined that the operation area to which thefirst touch operation is applied is the first operation area, and theoperation area to which the second touch operation is applied is thesecond operation area.

In this example, the touch position of the touch operation isrepresented by only one coordinate as an example. In actualimplementations, the touch position of the touch operation may also berepresented by a coordinate set, and in this case the mobile terminal,according to the coordinate set, calculates the average of the x-axisand y-axis respectively to obtain an average coordinate; determines theoperation area on which the touch operation acts based on the averagecoordinate.

For example: the touch positions of a touch operation are {(900, 900),(900, 901), (900, 902), (901, 900), (901, 901), (901, 902), (902, 900),(902, 901), (902, 902)}, then the average value of the x-axis is(900+900+900+901+901+901+901+902+902+902)/9=901; the average value ofthe y-axis is (900+900+900+901+901+901+901+902+902+902)/9=901; then theaverage coordinate is (901, 901), which belongs to the position range ofthe first operation area, and it is determined that the operation areaon which the touch operation acts is the first operation area.

When the position of the touch operation is represented by a coordinateset, if in the coordinate set, all the coordinates or coordinatesexceeding a predetermined proportion belong to the same operation area,it is determined that the position on which the touch operation actsbelongs to this operation area.

At 703: determining an operation area where the second touch operationoccurs.

The operation area where the second touch operation occurs is one of thefirst operation area and the second operation area.

For a detailed description of 703, please refer to 702, which is notdescribed in this example.

At 704: determining whether to respond to the first touch operationand/or the second touch operation according to the operation area wherethe first touch operation occurs and the operation area where the secondtouch operation occurs.

Response rules corresponding to the operation areas are preset in themobile terminal. The response rules are indicative of whether to respondto touch operations on the first operation area and the second operationarea. The mobile terminal determines whether to respond to the firsttouch operation and/or the second touch operation according to theresponse rules corresponding to the operation area operated by the firsttouch operation and the operation area operated by the second touchoperation.

Referring to FIG. 9, response rules corresponding to the operation areasare provided. When the first touch operation acts on the first operationarea and the second touch operation acts on the second operation area,the mobile terminal responds to the first touch operation and does notrespond to the second touch operation.

In an example, a response priority corresponding to an operation area ispreset in the mobile terminal. A response priority of a touch operationon the first operation area is higher than a response priority of atouch operation on the second operation area. The mobile terminaldetermines whether to respond to the first touch operation and/or thesecond touch operation according to a response priority corresponding tothe operation area where the first touch operation occurs and a responsepriority corresponding to the operation area where the second touchoperation occurs.

In an example, the operation area of the first touch operation is thefirst operation area, and the operation area of the second touchoperation is the second operation area. Since the response prioritycorresponding to the first operation area is higher than the responsepriority corresponding to the second operation area, the mobile terminalresponds to the first touch operation, and does not respond to thesecond touch operation; or, the mobile terminal responds to the firsttouch operation, and after responding to the first touch operation,responds to the second touch operation.

The response priority corresponding to the first operation area refersto the response priority of the touch operation on the first operationarea; the response priority corresponding to the second operation arearefers to the response priority of the touch operation on the secondoperation area.

According to the method provided in this example, when the mobileterminal receives at least two touch operations, the mobile terminaldetermines whether to respond to the touch operation according to theoperation area where each touch operation occurs, solving the problem ofwasting the operating resources of the mobile terminal caused by themobile terminal upon reception of a touch operation responding directlyto the touch operation and the touch operation being an accidentaloperation. The mobile terminal can determine, based on whether theoperation area is an area where accidental operations occur with a highprobability, whether to respond to the touch operation, thereby reducingthe probability of the mobile terminal responding to accidentaloperations.

In the present disclosure, the mobile terminal responding to a touchoperation (including the first touch operation and/or the second touchoperation) refers to performing a task indicated by the touch operation.For example: a touch operation is a click operation that clicks on anapplication icon on the desktop, then the mobile terminal responds tothe touch operation by running the application in the foreground.Another example: a touch operation is a long-press operation on a voiceinput option. The mobile terminal responds to the touch operation bystarting the audio recording function. For another example: if the touchoperation is a sliding operation on the contact's display page, themobile terminal responds to the touch operation by scrolling thecontacts page to show more contacts according to the sliding distanceand the sliding orientation of the sliding operation. The mobileterminal can perform other tasks when responding to the touch operation,which will not be listed one by one herein.

In the foregoing examples, because the edge area of the touch screen isgenerally an area where accidental operations occur with a highprobability, the second operation area is located at the edge area ofthe touch screen. The touch screen includes four edge areas: an upperedge area, a lower edge area, a left edge area, and a right edge area;the second operation area includes at least one of the four edge areas;the first operation area is an area other than the second operation areain the touch screen.

Referring to FIG. 8, the second operation area 82 includes four edgeareas, and the first operation area 81 is the area other than the secondoperation area 82 in the touch screen.

The shape of the first operation area may be rectangular, roundedrectangle, circle, ellipse, irregular shape, etc. Accordingly, the shapeof the second operation area is determined according to the shape of thefirst operation area.

Referring to FIG. 10, the shape of the first operation area 1001 iscircular, and areas other than the first operation area 1001 in thetouch screen are all second operation area 1002.

The shape of the first operation area and/or the second operation areais set by the mobile terminal by default; or, the shape is selected bythe user, which is not limited herein.

The size of the first operation area and/or the second operation area isset by the mobile terminal by default; or the size is selected by theuser, which is not limited herein.

In this example, by setting the edge areas with a higher probability oftouching by mistake as the second operation area, and setting the areasother than the second operation area as the first operation area, sincethe response priority corresponding to the first operation area ishigher than the response priority corresponding to the second operationarea, when the mobile terminal receives touch operations on the firstoperation area and second operation area respectively, it can respondpreferentially to touch operations on the first operation area, therebyreducing the probability of the mobile terminal preferentiallyresponding to accidental operations.

Depending on different ways the user uses the mobile terminal, the areawhere an accidental touch operation acts in the touch screen may bedifferent. For example: when the user uses a right hand for holding themobile terminal, the probability of accidentally touching the right edgearea of the touch screen is greater. In this case, if the positionand/or size of the first operation area and the second operation area inthe touch screen are fixed, and the second operation area includes fewerright edge area, or even does not include the right edge area, themobile terminal may still respond to accidental operations. In order toreduce the probability of the mobile terminal responding to accidentaloperations, in this present disclosure, the mobile terminal alsodetermines the first operation area and second operation area in thetouch screen in advance according to the current usage situation.

The usage situation of the mobile terminal includes, but is not limitedto, at least one of a holding mode corresponding to the mobile terminal,a display mode of the mobile terminal, and an implementation scenario ofthe mobile terminal.

The holding mode corresponding to the mobile terminal refers to the waythe user holds the mobile terminal. The holding mode includes:right-hand holding, left-hand holding, and two-hand holding.

The display mode of mobile terminal includes horizontal screen displayand vertical screen display.

Horizontal screen display refers to a display mode where the displayinterface of the mobile terminal is rotated 90 degrees to the left orright with the center point as the axis. In the present disclosure, thedisplay mode in which the display interface is rotated 90 degrees to theleft with the center point as the axis is referred to as a positivehorizontal screen display. Referring to FIG. 11, the display interfaceis rotated 90 degrees to the left with the center point as the axis; thedisplay mode in which the display interface is rotated 90 degrees to theright with the center point as the axis is referred to as an invertedhorizontal screen display. Referring to FIG. 12, the display interfaceis rotated 90 degrees to the right with the center point as the axis.

The present disclosure merely illustrates an example, i.e., a displaymode in which the display interface is rotated 90 degrees to the leftwith the center point as the axis is a positive horizontal screendisplay and a display mode in which the display interface is rotated 90degrees to the right with the center point as the axis is an invertedhorizontal screen display. In actual implementations, a display mode inwhich the display interface is rotated 90 degrees to the left with thecenter point as the axis may be implemented as an inverted horizontalscreen display, and a display mode in which the display interface isrotated 90 degrees to the right with the center point as the axis may beimplemented as a positive horizontal screen display, which is notlimited herein.

Vertical screen display refers to a display mode in which the displayinterface of the mobile terminal is not rotated, or is rotated 180degrees with the center point as the axis. In this present disclosure,the display mode in which the display interface does not rotate isreferred to as a positive vertical screen display. Referring to FIG. 13,the display interface is not rotated. The display mode in which thedisplay interface is rotated 180 degrees with the center point as theaxis is referred to as an inverted vertical screen display. Referring toFIG. 14, the display interface is rotated 180 degrees with the centerpoint as the axis.

The present disclosure merely illustrates an example, i.e., the displaymode in which the display interface does not rotate is positive verticalscreen display and the display mode in which the display interface isrotated by 180 degrees with the center point as the axis is an invertedvertical screen display. In actual implementations, the display mode inwhich the display interface does not rotate may be implemented as theinverted vertical screen display, and the display mode in which thedisplay interface is rotated by 180 degrees with the center point as theaxis is the positive vertical screen display, which is not limited inthe present disclosure.

The implementation scenario of the mobile terminal includes applicationscurrently running on the mobile terminal.

FIG. 15 is a flowchart illustrating a method for responding to a touchoperation according to another example implementation. The method beginsat 1501.

At 1501: determining the first operation area and the second operationarea in the touch screen.

The manner in which the mobile terminal determines the first operationarea and second operation area in the touch screen includes but is notlimited to the following.

First manner: determining the holding mode corresponding to the mobileterminal; determining the first operation area and second operation areaaccording to the holding mode.

The ways in which the mobile terminal determines the holding mode of themobile terminal includes but is not limited to the following.

First way: the mobile terminal determines the holding mode based on thereceived fingerprint information of the touch operation.

The mobile terminal has pre-stored template information of the left-handfingers and template information of the right-hand fingers. Afingerprint sensor is provided in the touch screen of the mobileterminal, and the fingerprint sensor is used to collect fingerprintinformation of a touch operation on the touch screen. When the mobileterminal receives a touch operation, it collects the fingerprintinformation of the touch operation through the fingerprint sensor andmatches the fingerprint information with the template information. Ifthe fingerprint information collected N times each matches the templateinformation of the left-hand fingers, it is determined that the holdingmode is left-hand holding. If the fingerprint information collected Ntimes each matches the template information of the right-hand fingers,then it is determined that the holding mode is right-hand holding; ifthe fingerprint information collected N times each matches the templateinformation of the left-hand fingers, while also matches the templateinformation of the right-hand fingers, it is determined that the holdingmode is two-hand holding.

Second way: the mobile terminal determines the holding mode according tothe number of touch operations received in the edge areas concurrently.

The left and right edge areas of the mobile terminal are touch screens(curved screens). In this case, the mobile terminal receives touchoperations through the touch screen located on the edge areas; or, theleft and right edge areas of the mobile terminal are provided with atleast one of a pressure sensor, a thermal sensor, and a capacitivesensor. In this case, the mobile terminal receives a touch operationthrough the at least one sensor.

When the user uses the right-hand holding mode to hold the mobileterminal, the number of touch operations received concurrently in theleft edge area is usually greater than the number of touch operationsreceived concurrently in the right edge area; when the user uses theleft-hand holding mode to hold the mobile terminal, the number of touchoperations received concurrently in the right edge area is usuallygreater than the number of touch operations received concurrently in theleft edge area. When the user uses both hands to hold the mobileterminal, the number of touch operations received concurrently in theleft edge area is usually equal to the number of touch operationsreceived concurrently in the right edge area.

According to the above holding rules, when the number of touchoperations received by the mobile terminal in the left edge area isgreater than the number of touch operations received in the right edgearea, it is determined that the holding mode is right-hand holding; whenthe number of touch operations received by the mobile terminal in theright edge area is greater than the number of touch operations receivedin the left edge area, it is determined that the holding mode isleft-hand holding; when the number of touch operations received by themobile terminal in the left edge area is equal to the number of touchoperations received in the right edge area, determine that the holdingmode is two-hand holding.

The mobile terminal can also determine the holding mode in other ways,which will not be listed one by one herein.

The mobile terminal determines the first operation area and the secondoperation area according to the holding mode, including: when theholding mode is right-hand holding, determining that the secondoperation area includes the right-hand edge area, and the area of theright-hand edge area in the second operation area is greater than afirst preset value; when the holding mode is left-hand holding, it isdetermined that the second operation area includes the left-hand edgearea, and the area of the left-hand edge area in the second operationarea is greater than a second preset value; when the holding mode istwo-hand holding, it is determined that the second operation areaincludes the left-hand edge area and the right-hand edge area, and thearea of the left-hand edge area in the second operation area is greaterthan a third preset value, and the area of the right-hand edge area inthe second operation area is greater than a fourth preset value.

The first preset value, the second preset value, the third preset value,and the fourth preset value are all greater than 0. The first presetvalue, the second preset value, the third preset value, and the fourthpreset value may be the same or different. This example does not limitthe values of the first preset value, the second preset value, the thirdpreset value, and the fourth preset value.

The first preset value, the second preset value, the third preset value,and the fourth preset value may be user-defined; or, may be set by themobile terminal by default.

The left-hand edge area refers to the edge area touched by the left palmin the touch screen; the right-hand edge area refers to the edge areatouched by the right palm in the touch screen.

The left-hand edge area may be one of a left edge area, a right edgearea, an upper edge area, and a lower edge area; the right-hand edgearea is an edge area opposite to the left-hand edge area.

When the user applies the right-hand holding to the mobile terminal, theright hand touches the right-hand edge area by mistake in a largerrange; when the left-hand holding is applied to the mobile terminal, theleft hand touches the left-hand edge area by mistake in a larger range.So when the holding mode is right-hand holding, it is determined thatthe second operation area includes the right-hand edge area, and thearea of the right-hand edge area in the second operation area is greaterthan the first preset value, thereby reducing the probabilities ofresponses of the mobile terminal to the accidental operations on theright-hand edge area. Similarly, when the holding mode is left-handholding, it is determined that the second operation area includes theleft-hand edge area, and the area of the left-hand edge area in thesecond operation area is greater than the second preset value, therebyreducing the probabilities of responses of the mobile terminal to theaccidental operations on the left-hand edge area. Similarly, when theholding mode is two-hand holding, it is determined that the secondoperation area includes the left-hand edge area and the right-hand edgearea, and the area of the left-hand edge area in the second operationarea is greater than the third preset value, and the area of theright-hand edge area in the second operation area is greater than thefourth preset value, thereby reducing the probabilities of responses ofthe mobile terminal to the accidental operations on the left-hand edgearea, also reducing the probabilities of responses of the mobileterminal to the accidental operations on the right-hand edge area.

In an example, referring to FIG. 16, the mobile terminal determines thatthe holding mode is right-hand holding, and the second operation areaincludes a right-hand edge area 1601, and an area of the right-hand edgearea 1601 is larger than the first preset value.

In an example, referring to FIG. 17, the mobile terminal determines thatthe holding mode is left-hand holding, and the second operation areaincludes a left-hand edge area 1701, and an area of the left-hand edgearea 1701 is larger than the second preset value.

In an example, referring to FIG. 18, the mobile terminal determines thatthe holding mode is a two-hand holding mode, and the second operationarea includes a left-hand edge area 1801 and a right-hand edge area1802. The area of the left-hand edge area 1801 is larger than the thirdpreset value. The area of the side edge area 1802 is larger than thefourth preset value.

It is noted that, the examples of using the foregoing method fordetermining the first operation area and the second operation areaaccording to the holding mode are for illustrative purposes only. Inactual implementations, the method for determining the first operationarea and the second operation area according to the holding mode may beimplemented differently. For example: when the holding mode isright-hand holding, it is determined that the second operation areaincludes the right-hand edge area and the left-hand edge area, and thearea of the right-hand edge area is larger than the area of theleft-hand edge area; when the holding mode is left-hand holding, it isdetermined that the second operation area includes the right-hand edgearea and the left-hand edge area, and the area of the right-hand edgearea is smaller than the area of the left-hand edge area; when theholding mode is two-hand holding, it is determined that the secondoperation area includes the right-hand edge area and the left-hand edgearea, and the area of the right-hand edge area is equal to the area ofthe left-hand edge area; this example does not limit the manner ofdetermining the first operation area and the second operation areaaccording to the holding mode.

Second manner: determining the display mode of the mobile terminal;determining the first operation area and second operation area accordingto the display mode.

The mobile terminal determines the display mode, including but notlimited to the following ways.

First way: the mobile terminal obtains the instruction information ofthe display mode, and determines the corresponding display modeaccording to the instruction information.

The instruction information is represented by a character string. Forexample, the instruction information “00” indicates a positive verticalscreen display; the instruction information “01” indicates an invertedvertical screen display; the instruction information “10” indicates apositive horizontal screen display; the instruction information “11”indicates an inverted horizontal screen display.

Second way: the mobile terminal obtains acceleration information anddetermines the corresponding display mode based on the accelerationinformation.

In an example, an acceleration sensor, such as a gravity sensor(G-sensor), is installed in the mobile terminal, and the accelerationsensor is used to collect acceleration information of the mobileterminal. The acceleration information is used to indicate the postureof the mobile terminal. Since the mobile terminal uses a specificdisplay mode to display the display interface, the user will rotate themobile terminal to the corresponding posture to view the displayinterface. Therefore, the display mode of the mobile terminal can bedetermined by obtaining the posture of the mobile terminal.

For example: when the acceleration data is (0, 9.81, 0), thecorresponding display mode is the positive vertical screen display; whenthe acceleration data is (−9.81, 0, 0), the corresponding display modeis the positive horizontal screen display; when the acceleration data is(9.81, 0, 0), the corresponding display mode is the inverted horizontalscreen display; when the acceleration data is (0, −9.81, 0), thecorresponding display mode is the inverted vertical screen display.

The mobile terminal can also determine the display mode by othermethods, which will not be enumerated in this example.

The mobile terminal determines the first operation area and the secondoperation area according to the display mode, including: when thedisplay mode is a vertical screen display, the second operation areaincludes the left edge area and the right edge area; when the displaymode is a horizontal screen display, the second operation area includesthe upper edge area and the lower edge area.

When the display mode of the mobile terminal is the horizontal screendisplay, the range of touching by mistake is relatively large in theupper edge area and the lower edge area, therefore, when the displaymode is the horizontal screen display, it is determined that the secondoperation area includes the upper edge area and the lower edge area. Inthis way, the probability of responding to accidental operations on theupper edge area and the lower edge area is reduced. When the displaymode is the vertical screen display, it is determined that the secondoperation area includes the left edge area and the right edge area, sothat the probability of responding to accidental operations on the leftedge area and the right edge area is reduced.

In one example, referring to FIG. 19, the display mode is a horizontalscreen display, and the second operation area includes an upper edgearea 1901 and a lower edge area 1902.

In one example, referring to FIG. 20, the display mode is a verticalscreen display, and the second operation area includes a left edge area2001 and a right edge area 2002.

It is noted that, the examples of using the foregoing method fordetermining the first operation area and the second operation areaaccording to the display mode are for illustrative purposes only. Inactual implementations, the method for determining the first operationarea and the second operation area according to the display mode may beimplemented differently. For example: when the display mode is thevertical screen display, the second operation area includes the leftedge area, right edge area, upper edge area, and lower edge area. Thearea of the left edge area and the area of the right edge area arelarger than the area of the upper edge area. The area of the left edgearea and the area of the right edge area are larger than the area of thelower edge area. When the display mode is the horizontal screen display,the second operation area includes the left edge area, right edge area,upper edge area, and lower edge area. The area of the upper edge areaand the area of the lower edge area are larger than the area of the leftedge area. The area of the upper edge area and the area of the loweredge area are larger than the area of the right edge area. This exampledoes not limit the ways of determining the first operation area andsecond operation area according to the display mode.

Third manner: determining the implementation scenario of the mobileterminal; determining the first operation area and second operation areaaccording to the implementation scenario.

The implementation scenario of the mobile terminal includes anapplication(s) currently running on the mobile terminal.

In an example, determining the implementation scenario by the mobileterminal includes: obtaining a package name corresponding to a currentlyrunning main activity; and determining a corresponding applicationaccording to the package name.

In an example, determining the first operation area and the secondoperation area according to the implementation scenario includes:responsive to determining that the application currently running on themobile terminal is a video playback application or a game application,determining that the second operation area includes the upper edge areaand the lower edge area; responsive to determining that the applicationcurrently running on the mobile terminal is a voice call application,determining that the second operation area includes the left edge areaand the right edge area.

When the user uses a video playback application or a game application,the display mode of the mobile terminal is usually a horizontal screendisplay, and the user holds the mobile terminal in a two-hand holdingmode. In this case, the range of touching by mistake is relativelylarger in the upper edge area and the lower edge area. Therefore, whenthe mobile terminal's currently running application is the videoplayback application or the game applications, by determining that thesecond operation area includes the upper edge area and the lower edgearea, the probability of responding of the mobile terminal to accidentaloperations in the upper edge area and the lower edge area is reduced.

When the user uses a voice call application, the display mode of themobile terminal is usually a vertical screen display. In this case, arange of touching by mistake in the left edge area and the right edgearea is relatively larger. Therefore, when the current application ofthe mobile terminal is a voice call application, it is determined thatthe second operation area includes the left edge area and the right edgearea, thereby reducing the probability of the mobile terminal respondingto accidental operations on the left edge area and the right edge area.

It is noted that, the examples of using the foregoing method fordetermining the first operation area and the second operation areaaccording to the implementation scenario are for illustrative purposesonly. In actual implementations, the method for determining the firstoperation area and the second operation area according to theimplementation scenario may be implemented differently. For example:determining the first operation area and the second operation areaaccording to other types of applications, this example does not limitthe manner of determining the first operation area and the secondoperation area according to the implementation scenario.

In the present disclosure, the first operation area and the secondoperation area can be determined according to at least one of theholding mode, the display mode, and the implementation scenario.

At 1502: receiving a first touch operation and a second touch operationwhich act on the touch screen for a preset time period.

For a detailed description of 1502, refer to 701, which is not describedin this example.

At 1503: determining an operation area on which the first touchoperation is applied. The operation area on which the first touchoperation is applied is one of the first operation area and the secondoperation area.

For a detailed description of 1503, refer to 702, which is not describedin this example.

At 1504: determining an operation area on which the second touchoperation is applied. The operation area on which the second touchoperation is applied is one of the first operation area and the secondoperation area.

For a detailed description of 1504, refer to 703, which is not describedin this example.

At 1505: determining whether to respond to the first touch operationand/or the second touch operation according to the operation area onwhich the first touch operation is applied and the operation area onwhich the second touch operation is applied.

For a detailed description of 1505, refer to 704, which is not describedin this example.

According to the method provided in this example, when the mobileterminal receives at least two touch operations, the mobile terminaldetermines whether to respond to the touch operation according to theoperation area on which each touch operation acts, solving the problemof wasting the operating resources of the mobile terminal caused by themobile terminal upon receiving a touch operation responding directly tothe touch operation and the touch operation being an accidentaloperation. Because the mobile terminal can determine whether to respondto a touch operation based on whether the operation area is an areawhere accidental operations occur with a high probability, theprobability of the mobile terminal responding to accidental operationscan be therefore reduced.

In addition, the first operation area and the second operation area aredetermined in different ways, so that the first operation area and thesecond operation area can dynamically adapt to the current usage of themobile terminal, and the flexibility of configuring the first operationarea and the second operation area can be improved.

In the above method, when the mobile terminal receives at least twotouch operations, it can only determine whether to respond to touchoperations on different operation areas. For different touch operationson the same operation area, the mobile terminal cannot determine whetherto respond to different touch operations.

In order to ensure that the mobile terminal can determine whether torespond to different touch operations acting on the same operation area,the following examples are also provided in this application.

FIG. 21 provides a flowchart of a method for responding to a touchoperation according to an example implementation. The method begins at2101.

At 2101: receiving a first touch operation and a second touch operationwhich act on the touch screen for a preset time period.

For a detailed description of 2101, refer to 701, which is not describedin this example.

At 2102: determining a first operation type of the first touchoperation.

The operation type (including the first operation type and the secondoperation type) is one of a click type, a slide type, and a long-presstype.

The mobile terminal determines the operation type of the touch operationaccording to the touch duration and/or displacement of the touchoperation (including the first touch operation and the second touchoperation).

In an example, when the touch duration is less than or equal to a firstduration threshold and the displacement does not change, the operationtype of the touch operation is determined as a click type; when thetouch duration is greater than the first duration threshold, less thanor equal to a second duration threshold, and the displacement changes,the touch operation is determined as a sliding operation; when the touchduration is greater than the first duration threshold, less than orequal to a third duration threshold, and the displacement does notchange, the touch operation is determined as a long-press operation.

At 2103: determining a second operation type of the second touchoperation.

For a detailed description of 2103, refer to 2102, which is notdescribed in this example.

At 2104: determining whether to respond to the first touch operationand/or the second touch operation according to the first operation typeand the second operation type.

The response priority of the first operation type is higher than theresponse priority of the second operation type, and the mobile terminaldetermines whether to respond to the first touch operation and/or thesecond touch operation according to the first operation type and thesecond operation type, including: respond to the first touch operationand does not respond to the second touch operation; or, after respondingto the first touch operation, respond to the second touch operation.

The first operation type is a click type, the second operation type isat least one of a slide type and a long-press type; or, the firstoperation type is a slide type, and the second operation type is along-press type.

Because in the process of using the mobile terminal, the probability ofa touch operation in long-press type being an operation-by-mistake ishigher than the probability of a touch operation in slide type being anoperation-by-mistake, which is higher than the probability of a touchoperation in click type being an operation-by-mistake, therefore, inthis example, by only responding or preferentially responding to a touchoperation with a lower probability of operations-by-mistake, theprobability of the mobile terminal responding to operations-by-mistakecan be reduced.

When the first operation type and the second operation type are bothlong-press types, the probability that both the first touch operationand the second touch operation are operations-by-mistake is high.Therefore, when the first operation type and the second operation typeare both long-press types, the first touch operation and the secondtouch operation are not responded, thereby reducing the probability thatthe mobile terminal responds to operations-by-mistake.

According to the method provided in this example, when the mobileterminal receives at least two touch operations, determines whether torespond to the corresponding touch operation according to the operationtype of each touch operation; solving the problem of wasting theoperating resources of the mobile terminal caused by mistaking touchoperation when the mobile terminal responds directly to the touchoperation as long as the touch operation is received. Because the mobileterminal can, based on whether the operation type is a type that has ahigher probability of being a touch operation by mistake, determinewhether to respond to a touch operation, the probability of the mobileterminal responding to operations-by-mistake can be reduced.

Referring to FIG. 21, the response priority of the operation type fixedas the response priority of the click type is higher than the responsepriority of the slide type, which is higher than the response priorityof the long-press type. However, in some implementation scenarios, theresponse priority of the operation type will be different. For example,in a chat interface scenario, the probability of a touch operation inslide type being operations by mistake is higher than the probability ofa touch operation in long-press type being operations by mistake, whichis higher than the probability of a touch operation in click type beingoperations by mistake. At this time, the response priority of the clicktype is higher than the response priority of the long-press type, whichis higher than the response priority of the slide type. Therefore, inorder to reduce the probability of the response of the mobile terminalto operations-by-mistake, the following examples are also provided inthe present disclosure.

FIG. 22 is a flowchart of a method for responding to a touch operationaccording to another example implementation. The method begins at 2201.

At 2201: determining an implementation scenario of the mobile terminal.

For a detailed description of 2201, refer to 1501, which is notdescribed in this example.

At 2202: receiving a first touch operation and a second touch operationon the touch screen within a preset time period.

For a detailed description of 2202, refer to 701, which is not describedin this example.

At 2203: determining a first operation type of the first touchoperation.

For a detailed description of 2203, refer to 2102, which is notdescribed in this example.

At 2204: determining a second operation type of the second touchoperation.

For a detailed description of 2204, refer to 2102, which is notdescribed in this example.

At 2205: determining whether to respond to the first touch operationand/or the second touch operation according to the first operation type,the second operation type, and the implementation scenario.

The mobile terminal determines the response priority of the firstoperation type and the response priority of the second operation typeaccording to the implementation scenario; determines whether to respondto the first touch operation and/or the second touch operation accordingto the response priority of the first operation type and the responsepriority of the second operation type.

The implementation scenario is a first preset scenario, and it isdetermined that the response priority of the click type is higher thanthe response priority of the slide type, which is higher than theresponse priority of the long-press type; or, the implementationscenario is a second preset scenario, and it is determined that theresponse priority of the click type is higher than the response priorityof the long-press type, which is higher than the response priority ofthe slide type; or, the implementation scenario is a third presetscenario, and it is determined that the response priority of the slidetype is higher than the response priority of the click type, which ishigher than the response priority of the long-press type.

The first preset scenario includes at least one program type, at leastone application program, and/or at least one display interface. Forexample, the first preset scenario includes a main interface and ashopping application.

The second preset scenario includes at least one program type, at leastone application program, and/or at least one display interface. Forexample, the second preset scenario includes a chat interface.

The third preset scenario includes at least one program type, at leastone application program, and/or at least one display interface. Forexample, the third preset scenario includes a game interface.

The description of determining whether to respond to the first touchoperation and/or the second touch operation according to the responsepriority of the first operation type and the response priority of thesecond operation type is described in details in 2104, which is notdescribed in detail in this example.

According to the method, when the mobile terminal receives at least twotouch operations, it determines whether to respond to the correspondingtouch operation according to the operation type of each touch operation,solving the problem of wasting the operating resources of the mobileterminal caused by mistaking touch operation when the mobile terminalresponds directly to the touch operation as long as the touch operationis received. Because the mobile terminal can, based on whether theoperation type is a type that has a higher probability of being a touchoperation by mistake, determine whether to respond to the touchoperation, the probability of the mobile terminal responding tooperations-by-mistake can be reduced.

In addition, by determining the response priority of the operation typeaccording to the implementation scenario, the mobile terminal canflexibly switch the response priority of the operation type according todifferent implementation scenarios, thereby reducing the probabilitythat the mobile terminal responds to operations-by-mistake.

In order to improve the accuracy of the mobile terminal's response tothe touch operation, in the present disclosure, the mobile terminalcombines the aspect of the operation area of the touch operation and theaspect of the operation type of the touch operation to determine whetherto respond to the touch operation. The following examples are alsoprovided in the present disclosure.

FIG. 23 is a flowchart of a method for responding to a touch operationaccording to another example implementation. The method begins at 2301.

At 2301: receiving a touch operation on a touch screen.

The mobile terminal receives one touch operation or at least two touchoperation on the touch screen. For a detailed description of 2301, referto 701, which is not described in this implementation.

At 2302: determining an operation area where the touch operation occurs.The touch screen includes a first operation area and a second operationarea. The operation area is at least one of the first operation area andthe second operation area.

For a detailed description of 2302, refer to 702, which is not describedin this implementation.

At 2303: determining an operation type of the touch operation.

For a detailed description of 2303, refer to 2102, which is notdescribed in this implementation.

At 2304: determining whether to response to the touch operationaccording to the operation area and the operation type.

The response priority of the touch operation acting on the firstoperation area is higher than the response priority of the touchoperation acting on the second operation area. The operation typesinclude a click type, a slide type, and a long-press type.

In the first scenario, the touch operation on the touch screen is onetouch operation. At this time, when the operation area of the touchoperation is the first operation area, the touch operation is respondedto. Since the probability of operations occurring on the first operationarea being accidental operations is low, the probability of the responseof the mobile terminal to accidental operations is relatively lower.

When the operation area is the second operation area and the operationtype is the click type or the slide type, the touch operation isresponded to; when the operation area is the second operation area andthe operation type is the long-press type, the touch operation is notresponded to.

Because the probability of the touch operation of the long-press typebeing accidental operation is relatively high, and the probability oftouch operation on the second operation area being accidental operationis relatively high, therefore, when the operation area is the secondoperation area, and the operation type is the long-press type, the touchoperation is not responded to, thereby reducing the probability that themobile terminal responds to accidental operations.

In the second scenario, the touch operations on the touch screen are atleast two touch operations. At this time, in 2301, the mobile terminalreceives a first touch operation and a second touch operation which acton the touch screen; in 2302, the mobile terminal determines anoperation area where the first touch operation occurs; determines anoperation area where the second touch operation occurs; in 2303, themobile terminal determines a first operation type of the first touchoperation; determines a second operation type of the second touchoperation.

Response rules are stored in the mobile terminal, and the response rulesare used to indicate whether to respond to a touch operation in aspecific operation area and having a specific operation type. Referringto the response rules illustrated in FIG. 24, according to the responserules, when the mobile terminal receives both the first touch operationand the second touch operation, if the operation type of the first touchoperation is the same as the operation type of the second touchoperation, or if the operation type of the first touch operation isclick type or slide type, then the mobile terminal respondspreferentially to the first touch operation. If the operation type ofthe first touch operation is different from the operation type of thesecond touch operation, and the operation type of the first touchoperation is long-press type, then the mobile terminal preferentiallyresponds to the second touch operation. When the mobile terminalreceives only the first touch operation, it responds to the first touchoperation. When the mobile terminal receives only the second touchoperation, and the operation type of the second touch operation is clicktype or slide type, it responds to the second touch operation; when themobile terminal receives only the second touch operation, and theoperation type of the second touch operation is long-press type, it doesnot respond to the second touch operation.

In an example, a response priority corresponding to the operation areaand a response priority corresponding to the operation type arepre-stored in the mobile terminal. At this time, when the operation areawhere the first touch operation occurs is the first operation area, theoperation area where the second touch operation occurs is the secondoperation area, and a response priority of the second operation type ishigher than a response priority of the first operation type, i.e., theresponse priority corresponding to the operation area is opposite to theresponse priority corresponding to the operation type, the mobileterminal determines a priority level of the operation area and apriority level of the operation type; determines whether to respond tothe first touch operation and/or the second touch operation according tothe priority level.

The priority level is indicative of responding to the touch operationaccording to the response priority corresponding to the operation area;or the priority level is indicative of responding to the touch operationaccording to the response priority corresponding to the operation type.

In at lest one implementation, a response priority of the click type ishigher than a response priority of the slide type, which is higher thana response priority of the long-press type.

In at least one implementation, when the first operation type is theclick type or the slide type, it is determined that the priority levelof the operation area is higher than the priority level of the operationtype. At this time, the mobile terminal responds to the first touchoperation and/or the second touch operation according to the responsepriority corresponding to the operation area.

For example, the first operation type is the slide type and the secondoperation type is the click type. At this time, the response priority ofthe first touch operation on the first operation area is higher than theresponse priority of the second touch operation on the second operationarea. The response priority of the first touch operation with the firstoperation type is lower than the response priority of the second touchoperation with the second operation type. The mobile terminal determinesthat the priority level of the operation area is higher than thepriority level of the operation type, i.e., according to the responsepriority corresponding to the operation area, the mobile terminal firstresponds to the first touch operation and then responds to the secondtouch operation; or only responds to the first touch operation.

In at least one implementation, when the first operation type is thelong-press type, it is determined that the priority level of theoperation type is higher than the priority level of the operation area.

For example: the first operation type is the long-press type and thesecond operation type is the click type. At this time, the responsepriority of the first touch operation on the first operation area ishigher than the response priority of the second touch operation on thesecond operation area; the response priority of the first touchoperation with the first operation type is lower than the responsepriority of the second touch operation with the second operation type.The mobile terminal determines that the priority level of the operationarea is lower than the priority level of the operation type, i.e., themobile terminal responds preferentially to the second touch operationand then to the first touch operation according to the response prioritycorresponding to the operation type; or, only responds to the secondtouch operation.

In summary, the method provided in this implementation determineswhether to respond to the touch operation according to the operationtype of the touch operation and the operation area on which the touchoperation acts, solving the problem of wasting the operating resourcesof the mobile terminal caused by mistaking touch operation when themobile terminal responds directly to the touch operation as long as thetouch operation is received. The mobile terminal can combine an aspectof whether the operation area is an area with a high probability ofhaving accidental touch operations, and an aspect of whether theoperation type is a type with a high probability of having accidentaltouch operations, to determine whether to respond to the touchoperation, thereby reducing the probability of the mobile terminalresponding to accidental operations.

When the mobile terminal receives at least three touch operations at thesame time, for any two of the at least three touch operations, the aboveprocess is not repeated until it is determined which touch operation torespond to.

The first operation area and the second operation area on the touchscreen may be set by default when the mobile terminal leaves thefactory; or may be determined according to a user's holding mode of themobile terminal and/or posture information of the mobile terminal. Inthis example, the first operation area and the second operation area aredetermined according to the holding mode of the mobile terminal and/orthe display mode of the mobile terminal and/or the implementationscenario of the mobile terminal.

FIG. 25 is a flowchart of a method for responding to a touch operationaccording to another example implementation. The method begins at 2501.

At 2501: determining the first operation area and the second operationarea of the touch screen.

For a detailed description of 2501, refer to 1501, which is notdescribed in this example.

At 2502: receiving the touch operation on the touch screen.

For a detailed description of 2502, refer to 2301, which is notdescribed in this example.

At 2503: determining the operation area on which the touch operationacts, the operation area on which the touch operation acts is at leastone of the first operation area and the second operation area.

For a detailed description of 2503, refer to 2302, which is notdescribed in this example.

At 2504: determining the operation type of the touch operation.

For a detailed description of 2504, refer to 2303, which is notdescribed in this example.

At 2505: determining whether to respond to the touch operation accordingto the operation area and the operation type.

For a detailed description of 2505, refer to 2304, which is notdescribed in this example.

In summary, the method provided in this example can determine the firstoperation area and the second operation area in different ways, so thatthe first operation area and the second operation area can dynamicallyadapt to the current usage situation of the mobile terminal, therebyimproving the flexibility of configuring the first operation area andsecond operation area.

The following are device implementations of the present disclosure,which can be used to implement the method implementations of the presentdisclosure. For details not disclosed in the device implementations ofthe present disclosure, please refer to the method implementations ofthe present disclosure.

Referring to FIG. 26, which shows a structural block diagram of a devicefor responding to a touch operation according to an implementation. Thedevice may be implemented as part or all of a mobile terminal throughsoftware, hardware, or a combination of both. The device is suitable forthe mobile terminal. The mobile terminal includes a touch screen. Thedevice may include an operation receiving unit 2610, an area determiningunit 2620, a type determining unit 2630, and an operation respondingunit 2640.

The operation receiving unit 2610 is configured to receive the touchoperation on the touch screen. The area determining unit 2620 isconfigured to determine an operation area where the touch operationoccurs, where the touch screen includes a first operation area and asecond operation area, and the operation area is at least one of thefirst operation area and the second operation area. The type determiningunit 2630 is configured to determine an operation type of the touchoperation. The operation responding unit 2640 is configured to determinewhether to respond to the touch operation according to the operationarea and the operation type.

In at least one implementation, a touch operation on the first operationarea has a response priority higher than a touch operation on the secondoperation area, and the operation type includes a click type, a slidetype, and a long-press type.

In at least one implementation, the operation responding unit 2640 isconfigured to: respond to the touch operation when the operation area isthe first operation area; respond to the touch operation when theoperation area is the second operation area and the operation type isthe click type or the slide type; and skip responding to the touchoperation when the operation area is the second operation area and theoperation type is the long-press type.

In at least one implementation, the operation receiving unit 2610 isconfigured to receive a first touch operation and a second touchoperation which act on the touch screen for a preset time period. Thearea determining unit 2620 is configured to: determine an operation areawhere the first touch operation occurs; and determine an operation areawhere the second touch operation occurs. The type determining unit 2630is configured to: determine a first operation type of the first touchoperation; and determine a second operation type of the second touchoperation. The operation responding unit 2640 is configured to:determine to respond to the first touch operation according to the firstoperation area, the second operation area, the first operation type, andthe second operation type when the first operation type is the same asthe second operation type, the operation area where the first touchoperation occurs is the first touch operation, and the operation areawhere the second touch operation occurs is the second touch operation.

In at least one implementation, the first operation type is differentfrom the second operation type and the second operation type has aresponse priority higher than the first operation type. The operationresponding unit 2640 is configured to: determine a priority level of theoperation area and a priority level of the operation type, where thepriority level is indicative of responding to the touch operationaccording to a response priority corresponding to the operation area oraccording to a response priority corresponding to the operation type;and determine whether to respond to at least one of the first touchoperation and the second touch operation according to the prioritylevel.

In at least one implementation, the first operation type is one of theclick type, the slide type, and the long-press type, the secondoperation type is one of the click type, the slide type, and thelong-press type, and a response priority of the click type is higherthan a response priority of the slide type and the response priority ofthe slide type is higher than a response priority of the long-presstype. The operation responding unit 2640 is configured to: determinethat the priority level of the operation area is higher than thepriority level of the operation type when the first operation type isthe click type or the slide type; and determine that the priority levelof the operation type is higher than the priority level of the operationarea when the first operation type is the long-press type.

The implementations of the present disclosure further provide anon-transitory computer readable storage medium. The non-transitorycomputer readable storage medium is configured to store a computerprogram which, when executed by a processor, causes the processor toexecute the foregoing method implementations.

Another aspect of the present disclosure also provides a computerprogram product containing program instructions, which when run on acomputer, causes the computer to perform the methods described in theabove aspects.

A person of ordinary skill in the art can understand that all or part ofthe operations of implementing the foregoing implementations or examplescan be implemented by hardware, and can also be implemented by a programinstructing related hardware. The program can be stored in acomputer-readable storage medium, and the storage medium mentioned abovecan be a read-only memory, a magnetic disk, or an optical disk.

The foregoing implementations are merely specific implementations of thepresent disclosure, and are not intended to limit the protection scopeof the present disclosure. It should be noted that any variation orreplacement readily figured out by persons skilled in the art within thetechnical scope disclosed in the present disclosure shall all fall intothe protection scope of the present disclosure. Therefore, theprotection scope of the present disclosure shall be subject to theprotection scope of the claims.

What is claimed is:
 1. A method for responding to a touch operation on amobile terminal, the mobile terminal comprising a touch screen, and themethod comprising: receiving the touch operation on the touch screen;determining an operation area where the touch operation occurs, whereinthe touch screen comprises a first operation area and a second operationarea, and the operation area is at least one of the first operation areaand the second operation area; determining an operation type of thetouch operation; and determining whether to respond to the touchoperation according to the operation area and the operation type.
 2. Themethod of claim 1, wherein a touch operation on the first operation areahas a response priority higher than a touch operation on the secondoperation area, and the operation type comprises a click type, a slidetype, and a long-press type.
 3. The method of claim 2, whereindetermining whether to respond to the touch operation according to theoperation area and the operation type comprises: responding to the touchoperation when the operation area is the first operation area;responding to the touch operation when the operation area is the secondoperation area and the operation type is the click type or the slidetype; and skipping responding to the touch operation when the operationarea is the second operation area and the operation type is thelong-press type.
 4. The method of claim 2, wherein receiving the touchoperation on the touch screen comprises: receiving a first touchoperation and a second touch operation which act on the touch screen fora preset time period; determining the operation area where the touchoperation occurs comprises: determining an operation area where thefirst touch operation occurs; and determining an operation area wherethe second touch operation occurs; determining the operation type of thetouch operation comprises: determining a first operation type of thefirst touch operation; and determining a second operation type of thesecond touch operation; and determining whether to respond to the touchoperation according to the operation area and the operation typecomprises: determining to respond to the first touch operation accordingto the first operation area, the second operation area, the firstoperation type, and the second operation type when the first operationtype is the same as the second operation type, the operation area wherethe first touch operation occurs is the first touch operation, and theoperation area where the second touch operation occurs is the secondtouch operation.
 5. The method of claim 4, wherein the first operationtype is different from the second operation type and the secondoperation type has a response priority higher than the first operationtype, and determining whether to respond to the touch operationaccording to the operation area and the operation type comprises:determining a priority level of the operation area and a priority levelof the operation type, wherein the priority level is indicative ofresponding to the touch operation according to a response prioritycorresponding to the operation area or according to a response prioritycorresponding to the operation type; and determining whether to respondto at least one of the first touch operation and the second touchoperation according to the priority level.
 6. The method of claim 5,wherein a response priority of the click type is higher than a responsepriority of the slide type and the response priority of the slide typeis higher than a response priority of the long-press type; anddetermining the priority level of the operation area and the prioritylevel of the operation type comprises: determining that the prioritylevel of the operation area is higher than the priority level of theoperation type when the first operation type is the click type or theslide type; and determining that the priority level of the operationtype is higher than the priority level of the operation area when thefirst operation type is the long-press type.
 7. The method of claim 1,wherein determining the operation area where the touch operation occurscomprises: determining that the operation area where the touch operationoccurs is the first operation area, when a touch position of the touchoperation belongs to a position range corresponding to the firstoperation area; and determining that the operation area where the touchoperation occurs is the second operation area, when the touch positionof the touch operation does not belong to the position rangecorresponding to the first operation area.
 8. The method of claim 1,wherein the first operation area is an area other than the secondoperation area in the touch screen.
 9. A mobile terminal, comprising: atouch screen; at least one processor; and a non-transitory computerreadable storage, coupled to the at least one processor and storing atleast one computer executable instruction thereon which, when executedby the at least one processor, causes the at least one processor to:receive a touch operation on the touch screen; determine an operationarea where the touch operation occurs, wherein the touch screencomprises a first operation area and a second operation area, and theoperation area is at least one of the first operation area and thesecond operation area; determine an operation type of the touchoperation; and determine whether to respond to the touch operationaccording to the operation area and the operation type.
 10. The mobileterminal of claim 9, wherein a touch operation on the first operationarea has a response priority higher than a touch operation on the secondoperation area, and the operation type comprises a click type, a slidetype, and a long-press type.
 11. The mobile terminal of claim 10,wherein the at least one processor configured to determine whether torespond to the touch operation according to the operation area and theoperation type is configured to: respond to the touch operation when theoperation area is the first operation area; respond to the touchoperation when the operation area is the second operation area and theoperation type is the click type or the slide type; and skip respondingto the touch operation when the operation area is the second operationarea and the operation type is the long-press type.
 12. The mobileterminal of claim 10, wherein the at least one processor configured toreceive the touch operation on the touch screen is configured to:receive a first touch operation and a second touch operation which acton the touch screen for a preset time period; the at least one processorconfigured to determine the operation area where the touch operationoccurs is configured to: determine an operation area where the firsttouch operation occurs; and determine an operation area where the secondtouch operation occurs; the at least one processor configured todetermine the operation type of the touch operation is configured to:determine a first operation type of the first touch operation; anddetermine a second operation type of the second touch operation; and theat least one processor configured to determine whether to respond to thetouch operation according to the operation area and the operation typeis configured to: determine to respond to the first touch operationaccording to the first operation area, the second operation area, thefirst operation type, and the second operation type when the firstoperation type is the same as the second operation type, the operationarea where the first touch operation occurs is the first touchoperation, and the operation area where the second touch operationoccurs is the second touch operation.
 13. The mobile terminal of claim12, wherein the first operation type is different from the secondoperation type and the second operation type has a response priorityhigher than the first operation type, and the at least one processorconfigured to determine whether to respond to the touch operationaccording to the operation area and the operation type is configured to:determine a priority level of the operation area and a priority level ofthe operation type, wherein the priority level is indicative ofresponding to the touch operation according to a response prioritycorresponding to the operation area or according to a response prioritycorresponding to the operation type; and determine whether to respond toat least one of the first touch operation and the second touch operationaccording to the priority level.
 14. The mobile terminal of claim 13,wherein a response priority of the click type is higher than a responsepriority of the slide type and the response priority of the slide typeis higher than a response priority of the long-press type; and the atleast one processor configured to determine the priority level of theoperation area and the priority level of the operation type isconfigured to: determine that the priority level of the operation areais higher than the priority level of the operation type when the firstoperation type is the click type or the slide type; and determine thatthe priority level of the operation type is higher than the prioritylevel of the operation area when the first operation type is thelong-press type.
 15. The mobile terminal of claim 9, wherein the atleast one processor configured to determine the operation area where thetouch operation occurs is configured to: determine that the operationarea where the touch operation occurs is the first operation area, whena touch position of the touch operation belongs to a position rangecorresponding to the first operation area; and determine that theoperation area where the touch operation occurs is the second operationarea, when the touch position of the touch operation does not belong tothe position range corresponding to the first operation area.
 16. Themobile terminal of claim 9, wherein the first operation area is an areaother than the second operation area in the touch screen.
 17. Anon-transitory computer readable storage medium storing a computerprogram which, when executed by a processor, causes the processor to:receive a touch operation on a touch screen of a mobile terminal;determine an operation area where the touch operation occurs, whereinthe touch screen comprises a first operation area and a second operationarea, and the operation area is at least one of the first operation areaand the second operation area; determine an operation type of the touchoperation; and determine whether to respond to the touch operationaccording to the operation area and the operation type.
 18. Thenon-transitory computer readable storage medium of claim 17, wherein atouch operation on the first operation area has a response priorityhigher than a touch operation on the second operation area, and theoperation type comprises a click type, a slide type, and a long-presstype.
 19. The non-transitory computer readable storage medium of claim18, wherein the computer program executed by the processor to determinewhether to respond to the touch operation according to the operationarea and the operation type is executed by the processor to: respond tothe touch operation when the operation area is the first operation area;respond to the touch operation when the operation area is the secondoperation area and the operation type is the click type or the slidetype; and skip responding to the touch operation when the operation areais the second operation area and the operation type is the long-presstype.
 20. The non-transitory computer readable storage medium of claim18, wherein the computer program executed by the processor to receivethe touch operation on the touch screen is executed by the processor to:receive a first touch operation and a second touch operation which acton the touch screen for a preset time period; the computer programexecuted by the processor to determine the operation area where thetouch operation occurs is executed by the processor to: determine anoperation area where the first touch operation occurs; and determine anoperation area where the second touch operation occurs; the computerprogram executed by the processor to determine the operation type of thetouch operation is executed by the processor to: determine a firstoperation type of the first touch operation; and determine a secondoperation type of the second touch operation; and the computer programexecuted by the processor to determine whether to respond to the touchoperation according to the operation area and the operation type isexecuted by the processor to: determine to respond to the first touchoperation according to the first operation area, the second operationarea, the first operation type, and the second operation type when thefirst operation type is the same as the second operation type, theoperation area where the first touch operation occurs is the first touchoperation, and the operation area where the second touch operationoccurs is the second touch operation.